<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./echarts.js"></script>
</head>

<body>
    <div id="xq" style="width: 500px; height: 350px;">

    </div>
</body>
<script>
    var myEcharts = echarts.init(document.getElementById('xq'))
    var option = {
        legend: {
            data: ['C2109A班', 'C2109B班', 'C2109C班', 'C2109D班']
        },


        xAxis: {
            type: 'category',
            data: ['5.21', '5.22', '5.23', '今日', '5.25', '5.26', '5.27']
        },
        yAxis: {
            type: 'value'
        },
        series: [
            {
                name: 'C2109A班',
                type: 'line',
                data: [20, 35, 15, 40, 30, 20, 40]
            },
            {
                name: 'C2109B班',
                type: 'line',
                data: [10, 20, 30, 40, 60, 100,200]
            },
            {
                name: 'C2109C班',
                type: 'line',
                data: [80, 75, 80, 63, 54, 100, 90]
            },
            {
                name: 'C2109D班',
                type: 'line',
                data: [35, 25, 30, 40, 38, 40, 45]
            },

        ]
    };

    option && myEcharts.setOption(option);

</script>
</body>

</html>